/**
* 
* ====================================================================
*
* @author apov <apov@ymail.com>
*/ 
// IniFile.h
//

#pragma once

#include "BaseDefine.h"
#include "FileObj.h"

/**
* @class IniFile
*  - 
*/
class IniFile : protected FileObj{
	enum{
		DEF_BUFFER=			2048,
	};

public:
	int read_numeric( char* file_name, char* section, char* key, int default_value );
	int read_string( char* file_name, char* section, char* key, char* ret, int in_size );

	IniFile();
	virtual ~IniFile();

protected:

private:
	bool find_section( char* section );
	bool find_key( char* key, char* ret );
};
